﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

using CE.Global;
public partial class faq_how_to_buy_car_insurance : MyLanguageBasePage
{
    protected override void InitializeCulture()
    {
        String selectedCulture = CE.Global.General.SetCulture();
        base.InitializeCulture();
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        Master.Page.Title = Resources.Title.HowtoPurchaseTitle;

        LiteralControl newln = new LiteralControl(Environment.NewLine);
        HtmlMeta language = new HtmlMeta();
        language.Name = "language";
        language.Content = Resources.Title.PageLanguage;

        HtmlMeta keywords = new HtmlMeta();
        keywords.Name = "keywords";
        keywords.Content = Resources.Title.HowtoPurchaseKeyword;
        HtmlMeta description = new HtmlMeta();
        description.Name = "description";
        description.Content = Resources.Title.HowtoPurchaseDescription;

        Page.Header.Controls.AddAt(10, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(11, language);
        Page.Header.Controls.AddAt(12, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(13, keywords);
        Page.Header.Controls.AddAt(14, new LiteralControl(Environment.NewLine));
        Page.Header.Controls.AddAt(15, description);
        if (!IsPostBack)
        {
            //aGetQuote.HRef = CE.Global.General.GetUrl("/car-insurance", Page);
            hplContactus.NavigateUrl = CE.Global.General.GetUrl("/contact-us/", Page);
        }
    }

    protected void btnGetQuote_Click(object sender, EventArgs e)
    {
        try
        {
            string _strCarRedirectURL = CE.Global.General.GetUrl("/car-insurance/car-details", Page);
            Response.Redirect(_strCarRedirectURL);
        }
        catch (Exception ex)
        {

        }
    }

}
